package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *  企业行业类别
 * </p>
 *
 * @author bob
 * @since 2020-04-02
 */
@Data
@Accessors(chain = true)
@TableName("zdd_enterprise_industry")
public class EnterpriseIndustry extends Model<EnterpriseIndustry> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "industry_id", type = IdType.AUTO)
    private Integer industryId;
    /**
     * 行业名称
     */
    @TableField("industry_name")
    private String industryName;
    /**
     * 父级id，没有则为0
     */
    @TableField("industry_parent_id")
    private Integer industryParentId;
    /**
     * 1：有效，2：无效
     */
    @TableField("industry_state")
    private Integer industryState;
    /**
     * 创建时间
     */
    private Date createtime;


    @Override
    protected Serializable pkVal() {
        return this.industryId;
    }

}
